<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:output method="html" version="4.0" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
	<xsl:param name="idC"/>
			<xsl:template match="/">
				<html>
					<head>
						<link rel="stylesheet" type="text/css" href="feuilleStyle.css"/> 
						<title>Liste des Personnes ayant la compétence <xsl:value-of select="$idC"/></title>
					</head>
					<body>
						<div id="bandeauHautPage">
							<img src="images/bandeau.jpg" alt="bandeau-haut"/>
						</div>


						<ul id="menu_horizontal">
							<li> <a href="Accueil.html"> Accueil </a> </li> <li> <a href="personnes.xml">  Page des CVs </a> </li> <li> <a href="Competences.xml"> Page des compétences </a> </li>
						</ul>

						<div id="Presentation">
							<h1> Liste des Personnes ayant la compétence  <xsl:value-of select="document('./Competences.xml')//Competences/Competence[@idC=$idC]/Nom"/> </h1>
					<ul>	
							
					<xsl:for-each select="//Personnes/CV">
						<xsl:for-each select="./Competences/Comp">
							<xsl:if test="./@idC = $idC">
								<li>
									<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat('index.php?cvFile=', ../../NomFichier)"/> </xsl:attribute> <xsl:value-of select="concat(../../Nom, ' ')" /> <xsl:value-of select="../../Prenom"/> </xsl:element>
								</li>
							</xsl:if>
						</xsl:for-each>
					</xsl:for-each>
					
				</ul>		
			</div>
		   </body>
				</html>
			</xsl:template>
</xsl:stylesheet>
